<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<style type="text/css">
A.nodec { text-decoration: none; }
</style>
</head>
<body>
<h1 class="pagetitle">供应商列表</h1>

<a href="supplier.action">新增供应商</a>
<pg:pager
	url="supplier!list.action"
    items="${pager.totalSize}"
    maxPageItems="${pager.pageSize}"
    isOffset="true"
    export="offset,currentPageNumber=pageNumber"
    scope="request">
  <jsp:include page="/WEB-INF/jsp/simple.jsp" flush="true"/>
  <table class="bigtable">
  <tr>
  	<th>名称</th>
  	<th>电话</th>
  	<th>备注</th>
  	<th>--</th>
  </tr>
  <s:iterator value="pager.list" var="thePage" status="pl">
  <tr <s:if test="#pl.even">class="tr-even"</s:if>>
  	<td><a href="supplier!inputParts.action?supplier.id=${id}"><s:property value="name"/></a></td>
  	<td><s:property value="phone"/></td>
  	<td><s:property value="remark"/></td>
  	<td>
  	<a href="supplier!modify.action?supplier.id=${id}">修改基本资料</a><br>
  	<a href="supplier!delete.action?supplier.id=${id}">删除</a>
  	<a href="purchaseOrder.action?supplier.id=${id}">采购</a>
  	</td>
  </tr>
  </s:iterator>
  </table>
  <jsp:include page="/WEB-INF/jsp/simple.jsp" flush="true"/>
</pg:pager>
</body>
</html>